
/**
 * <p>
 * 商品类型表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:11:23
 */

package com.neighbor.neighborhoodadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neighbor.neighborhoodadmin.dao.IMallProductTypesDao;
import com.neighbor.neighborhoodadmin.pojo.MallProductTypes;
import com.neighbor.neighborhoodadmin.service.IMallProductTypesService;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class MallProductTypesServiceImpl extends ServiceImpl<IMallProductTypesDao, MallProductTypes>
        implements IMallProductTypesService {

    @Override
    public List<MallProductTypes> getActiveTypes() {
        return baseMapper.selectActiveTypes();
    }

    @Override
    public Integer countProductsByType(Integer typeId) {
        return baseMapper.countProductsByType(typeId);
    }

    @Override
    public List<MallProductTypes> searchByName(String keyword) {
        return baseMapper.searchByName(keyword);
    }
}